package com.tianji.learning.service;

import com.tianji.common.domain.dto.PageDTO;
import com.tianji.learning.domain.Vo.LearningNoteAdminPageVo;
import com.tianji.learning.domain.Vo.LearningNoteVO;
import com.tianji.learning.domain.Vo.NoteDetailVo;
import com.tianji.learning.domain.dto.AddNoteDTO;
import com.tianji.learning.domain.Vo.LearningNoteVO;
import com.tianji.learning.domain.dto.LearningNoteFromDTO;
import com.tianji.learning.domain.po.LearningNote;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domain.query.NoteAdminPageQuery;
import com.tianji.learning.domain.query.NoteQuery;

import java.util.List;

/**
 * <p>
 * 笔记表 服务类
 * </p>
 *
 * @author author
 */
public interface ILearningNoteService extends IService<LearningNote> {

    void insertNote(AddNoteDTO dto);

    PageDTO<LearningNoteAdminPageVo> pageQueryAdmin(NoteAdminPageQuery query);
    void updateNote(LearningNoteFromDTO noteDTO);

    void deleteNote(Long id);

    LearningNoteVO getNoteById(Long id);

    PageDTO<LearningNoteVO> notePage(NoteQuery query);

    void getNote(Long id);

    void deleteNoted(Long id);

    NoteDetailVo getNoteDetailById(Long id);
}
